#ifndef GASCONTROLER_H
#define GASCONTROLER_H

#include "gasControler_global.h"
#include "gascontorolport.h"
#include "m_snapclient.h"
#include "controler.h"

class GASCONTROLER_EXPORT GasControler:public QObject
{
    Q_OBJECT
public:
    explicit GasControler(QObject *parent = nullptr);

    void autoControl(Controler *c,QString,QString);

    gasContorolPort* createPort(QWidget *W);
    Controler* createControl(bool admin);

    Controler *controlWidget;

    static M_snapClient *client;

private:
    gasContorolPort *myPort;

signals:
    void option(QString op);
};

#endif // GASCONTROLER_H
